package com.yiwei.hdb.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by xsooy-pc on 18-6-11.
 */

public class V3HomeIndexModel extends ResponseModel {


    /**
     * data : {"user":{"header":null,"user_name":"13266001008","mobile":"13266001008","real_name":"叶建超","sex":1,"idno":"44190019870803431X","idcardpassed":1,"point":80,"level_id":1,"deal_min_quota":"1000","deal_max_quota":"2000"},"deal_status":{"status":6,"need_repay_money":1000,"color":"#3BCF8F","remark_text":["当前借款距离还款日还有1天","为避免逾期，请按时还清借款哦！"]},"banners":[{"id":4,"groupid":3,"group_name":"index","image":"http://img3.dob500.cn/public/qingchun.png","url":"https://www.baidu.com/","width":750,"height":372,"sort":99,"is_effect":1,"open_url_type":1,"created_at":"2018-05-22 14:55:21","updated_at":"2018-05-22 14:55:21"},"... ..."],"deal_user_list":[{"id":1,"portrait":"http://img3.dob500.cn/public/meng.png","name":"张三","sex":"男","ages":27,"description":"张三张三张三张三张三张三张三张三","sort":99,"is_effect":1,"left_color":"#97A3FC","right_color":"#5A89FF","updated_at":1526972121,"created_at":1526972121}],"notice":[{"text":"恭喜肖先生获得借款1000元","time":"1周前"}]}
     */

    public DataBean data;

    public static class DataBean {
        /**
         * user : {"header":null,"user_name":"13266001008","mobile":"13266001008","real_name":"叶建超","sex":1,"idno":"44190019870803431X","idcardpassed":1,"point":80,"level_id":1,"deal_min_quota":"1000","deal_max_quota":"2000"}
         * deal_status : {"status":6,"need_repay_money":1000,"color":"#3BCF8F","remark_text":["当前借款距离还款日还有1天","为避免逾期，请按时还清借款哦！"]}
         * banners : [{"id":4,"groupid":3,"group_name":"index","image":"http://img3.dob500.cn/public/qingchun.png","url":"https://www.baidu.com/","width":750,"height":372,"sort":99,"is_effect":1,"open_url_type":1,"created_at":"2018-05-22 14:55:21","updated_at":"2018-05-22 14:55:21"},"... ..."]
         * deal_user_list : [{"id":1,"portrait":"http://img3.dob500.cn/public/meng.png","name":"张三","sex":"男","ages":27,"description":"张三张三张三张三张三张三张三张三","sort":99,"is_effect":1,"left_color":"#97A3FC","right_color":"#5A89FF","updated_at":1526972121,"created_at":1526972121}]
         * notice : [{"text":"恭喜肖先生获得借款1000元","time":"1周前"}]
         */

        public UserBean user;
        public DealStatusBean deal_status;
        public List<BannersBean> banners;
        public List<DealUserListBean> deal_user_list;
        public List<NoticeBean> notice;
        public List<OverdueNotice> overdue_notice;

        public static class UserBean {
            /**
             * header : null
             * user_name : 13266001008
             * mobile : 13266001008
             * real_name : 叶建超
             * sex : 1
             * idno : 44190019870803431X
             * idcardpassed : 1
             * point : 80
             * level_id : 1
             * deal_min_quota : 1000
             * deal_max_quota : 2000
             */

            public Object header;
            public String user_name;
            public String mobile;
            public String real_name;
            public int sex;
            public String idno;
            public int idcardpassed;
            public int point;
            public int level_id;
            public String deal_min_quota;
            public String deal_max_quota;
        }

        public static class DealStatusBean {
            /**
             * status : 6
             * need_repay_money : 1000
             * color : #3BCF8F
             * remark_text : ["当前借款距离还款日还有1天","为避免逾期，请按时还清借款哦！"]
             */
            public int overdue_days;
            public String status;
            public String need_repay_money;
            public String color;
            public String services_fee;
            public List<String> remark_text;
            public String money;
            public String deal_id;
        }

        public static class BannersBean {
            /**
             * id : 4
             * groupid : 3
             * group_name : index
             * image : http://img3.dob500.cn/public/qingchun.png
             * url : https://www.baidu.com/
             * width : 750
             * height : 372
             * sort : 99
             * is_effect : 1
             * open_url_type : 1
             * created_at : 2018-05-22 14:55:21
             * updated_at : 2018-05-22 14:55:21
             */

            public int id;
            public int groupid;
            public String group_name;
            public String image;
            public String url;
            public int width;
            public int height;
            public String title;
            public int sort;
            public String remark;
            public int is_effect;
            public int open_url_type;
            public String created_at;
            public String updated_at;
        }


        public static class OverdueNotice {

            //                'real_name' => '张云川',
//                        'idno' => '341***********5736',
//                        "sex" => "男",
//                        "ages"  => 26,
//                        "borrow_amount"  => '1000.00',
//                        "overdue_days"  => '2',
//                        "handle"  => '处理方式：在本平台内部进行曝光和公示',
            public String real_name;
            public String idno;
            public String sex;
            public String ages;
            public String borrow_amount;
            public String overdue_days;
            public String handle;
        }

        public static class DealUserListBean {
            /**
             * id : 1
             * portrait : http://img3.dob500.cn/public/meng.png
             * name : 张三
             * sex : 男
             * ages : 27
             * description : 张三张三张三张三张三张三张三张三
             * sort : 99
             * is_effect : 1
             * left_color : #97A3FC
             * right_color : #5A89FF
             * updated_at : 1526972121
             * created_at : 1526972121
             */

            public int id;
            public String portrait;
            public String name;
            public String sex;
            public int ages;
            public String description;
            public int sort;
            public int is_effect;
            public String left_color;
            public String right_color;
            public int updated_at;
            public int created_at;
        }

        public static class NoticeBean {
            /**
             * text : 恭喜肖先生获得借款1000元
             * time : 1周前
             */

            public String text;
            public String time;
        }
    }
}
